<?php slot('article_author','active'); ?>
<div class="row-fluid">
				<div class="box span12">
					<div class="box-header">
						<h2><i class="icon-edit"></i>添加作者</h2>
						<div class="box-icon"></div>
					</div>
					<div class="box-content">
              <?php if($sf_user->hasFlash('error')): ?>
              <div class="alert alert-error">
                      <button type="button" class="close" data-dismiss="alert">×</button>
                      <strong>错误！</strong>  <?php echo $sf_user->getFlash('error'); ?>
              </div>
              <?php endif; ?>
              <?php if($sf_user->hasFlash('success')): ?>
              <div class="alert alert-success">
                      <button type="button" class="close" data-dismiss="alert">×</button>
                      <strong>操作成功！</strong> <?php echo $sf_user->getFlash('success'); ?>
              </div>
              <?php endif; ?>
                                          
                                            <form class="form-horizontal" action="<?php echo url_for('article_author/create'); ?>" method="post" enctype="multipart/form-data">
						  <fieldset>
							<div class="control-group ">
								<label class="control-label" for="focusedInput">名称</label>
								<div class="controls">
								  <input class="input-xlarge focused" name="title" type="text" value="" />
                                   <span class="help-inline"></span>
								</div>
							  </div>
                            <div class="control-group">
							  <label class="control-label" for="fileInput">头像</label>
							  <div class="controls">
								<input class="input-file uniform_on" name="cover" type="file" />
							  </div>
							</div>
                            <div class="control-group hidden-phone">
							  <label class="control-label" for="textarea2">介绍</label>
							  <div class="controls">
								<textarea id="edu" name="summary" style="width:650px;height:100px;"></textarea>
                                                                <span class="help-inline">字数限制为：500个字符，1个汉字为2个字符</span>
							  </div>
							</div>
                            
				<div class="form-actions">
							  <input type="submit" class="btn btn-primary" value="保存数据" />
							  <button type="reset" class="btn" onclick="window.location.href='<?php echo url_for('article_author/index'); ?>';">返回列表</button>
							</div>
						  </fieldset>
						</form>
					</div>
				</div><!--/span-->

			</div>
<script type="text/javascript">

</script>